3.7.28 \(\int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx\) [628]

Optimal. Leaf size=109 \[ \frac {2 \sqrt {a+b} \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d} \]

[Out]

2*cot(d*x+c)*EllipticF((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+c)^(1/2),((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*(
a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(a-b))^(1/2)/a/d

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 109, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {2895} \begin {gather*} \frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(Sqrt[Cos[c + d*x]]*Sqrt[a + b*Cos[c + d*x]]),x]

[Out]

(2*Sqrt[a + b]*Cot[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a
+ b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(a*d)

Rule 2895

Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*(
Tan[e + f*x]/(a*f))*Rt[(a + b)/d, 2]*Sqrt[a*((1 - Csc[e + f*x])/(a + b))]*Sqrt[a*((1 + Csc[e + f*x])/(a - b))]
*EllipticF[ArcSin[Sqrt[a + b*Sin[e + f*x]]/Sqrt[d*Sin[e + f*x]]/Rt[(a + b)/d, 2]], -(a + b)/(a - b)], x] /; Fr
eeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && PosQ[(a + b)/d]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx &=\frac {2 \sqrt {a+b} \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 1.46, size = 170, normalized size = 1.56 \begin {gather*} -\frac {4 (a+b) \cos ^{\frac {3}{2}}(c+d x) \sqrt {-\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{a-b}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) F\left (\text {ArcSin}\left (\sqrt {-\frac {a+b \cos (c+d x)}{a (-1+\cos (c+d x))}}\right )|\frac {2 a}{a-b}\right )}{a d \sqrt {a+b \cos (c+d x)} \left (-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}\right )^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(Sqrt[Cos[c + d*x]]*Sqrt[a + b*Cos[c + d*x]]),x]

[Out]

(-4*(a + b)*Cos[c + d*x]^(3/2)*Sqrt[-(((a + b)*Cot[(c + d*x)/2]^2)/(a - b))]*Sqrt[((a + b*Cos[c + d*x])*Csc[(c
 + d*x)/2]^2)/a]*Csc[c + d*x]*EllipticF[ArcSin[Sqrt[-((a + b*Cos[c + d*x])/(a*(-1 + Cos[c + d*x])))]], (2*a)/(
a - b)])/(a*d*Sqrt[a + b*Cos[c + d*x]]*(-(((a + b)*Cos[c + d*x]*Csc[(c + d*x)/2]^2)/a))^(3/2))

________________________________________________________________________________________

Maple [A]
time = 0.24, size = 123, normalized size = 1.13

method result size
default \(-\frac {2 \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \left (\sin ^{4}\left (d x +c \right )\right )}{d \sqrt {a +b \cos \left (d x +c \right )}\, \cos \left (d x +c \right )^{\frac {3}{2}} \left (-1+\cos \left (d x +c \right )\right )^{2}}\) \(123\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

-2/d*(cos(d*x+c)/(1+cos(d*x+c)))^(3/2)/(a+b*cos(d*x+c))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+
b))^(1/2))*((a+b*cos(d*x+c))/(1+cos(d*x+c))/(a+b))^(1/2)*sin(d*x+c)^4/cos(d*x+c)^(3/2)/(-1+cos(d*x+c))^2

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate(1/(sqrt(b*cos(d*x + c) + a)*sqrt(cos(d*x + c))), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(b*cos(d*x + c) + a)*sqrt(cos(d*x + c))/(b*cos(d*x + c)^2 + a*cos(d*x + c)), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {a + b \cos {\left (c + d x \right )}} \sqrt {\cos {\left (c + d x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cos(d*x+c)**(1/2)/(a+b*cos(d*x+c))**(1/2),x)

[Out]

Integral(1/(sqrt(a + b*cos(c + d*x))*sqrt(cos(c + d*x))), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(1/(sqrt(b*cos(d*x + c) + a)*sqrt(cos(d*x + c))), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {a+b\,\cos \left (c+d\,x\right )}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(cos(c + d*x)^(1/2)*(a + b*cos(c + d*x))^(1/2)),x)

[Out]

int(1/(cos(c + d*x)^(1/2)*(a + b*cos(c + d*x))^(1/2)), x)

________________________________________________________________________________________